<?php
namespace app\admin\model;

use think\Model;
use app\common\model\admin;

class AdminLog extends Model
{
    protected $pk = 'log_id';
    protected $createTime = 'log_time';
    protected $autoWriteTimestamp = true;
    protected $type = [
        'log_time' => 'timestamp',
    ];
    public function admin(){
        return $this->belongsTo('app\common\model\Admin','admin_id','adm_id');
    }

}